]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Don't mess up the modal stack when the focus actor is destroyed
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 2 Jan 2013 14:05:32 +0000 (09:05 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 2 Jan 2013 17:32:29 +0000 (12:32 -0500)
This seems to be an incorrect conversion when we moved from an array
to an object of keys in 3a6b4f3.

https://bugzilla.gnome.org/show_bug.cgi?id=690965

js/ui/main.js

index 12daee24dfdd6abd30412bb9d6124767f604f15c..1334d58e679fa2ca8c8837161df1360f90b5a02c 100644 (file)
@@ -553,7 +553,7 @@ function pushModal(actor, params) {
         curFocusDestroyId = curFocus.connect('destroy', function() {
             let index = _findModal(actor);
             if (index >= 0)
-                modalActorFocusStack[index].actor = null;
+                modalActorFocusStack[index].focus = null;
         });
     }
     modalActorFocusStack.push({ actor: actor,